package com.liu.dynamicDemo;

public class text {
    public static void main(String[] args) {
        //真实角色
        HostPerson hostPerson = new HostPerson();
        //代理角色

        //动态
        ProxyDemo proxyDemo = new ProxyDemo();
        proxyDemo.setHostPerson(hostPerson);
        Cliet proxy =(Cliet) proxyDemo.getProxy();
        proxy.add();
    }
}
